<template>
  <div class="container">
    <div class="getInfo">
      <div class="section header-img">
        <img class="head-img" :src="logoImg" background-size="cover"/>
      </div>
      <div class="section login-container">
        <div class="text">
          <p class="title">四维代步车申请获取以下权限</p>
          <p>获取你的公开信息（昵称，头像）</p>
        </div>
        <div class="btn-container">
          <!-- <van-button v-if="canIUse" class="btn-large" @getuserinfo="onGetUserInfo" open-type="getUserInfo">微信授权登录</van-button>
          <div v-else>请升级微信版本</div> -->
          <van-button class="btn-large" @click="getCode" open-type="getUserInfo">微信授权登录</van-button>
          <p style="height:40px"></p>
          <van-button  class="btn-large" @click="back()" >取消</van-button>
          
          <!-- <div v-else>请升级微信版本</div> -->
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import logoImg from '../assets/logo.png'
export default {
  data () {
    return {
     logoImg,
    }
  },
  computed:{
    
  },
  methods: {
    back(){
        this.$router.push("/");
    },
    
  },

  created () {
    // let app = getApp()
    
  },
  
}
</script>

<style lang="scss" scoped>
.container{
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
    font-size: 12px;
    color: #333;
    .getInfo{
        width:100%;
        background-color:white;
        text-align: center;
        .head-img{
            width: 80px;
            height: 80px;
            margin: 150px 0 50px 0;
        }
    }
    .section{
        .text{
            .title{
                font-size: 18px;
                color: #000;
                line-height: 35px;
            }
            p{
                color: #a7a7a7;
            }
        }
        .btn-container{
            padding-top: 20px;
            button{
                width: 80%;
                border-radius: 50px;
                background: #AD2F2F;
                border: none;
                outline: none;
                color: #fff;
            }
        }
    }
}
  
</style>
